import { BaseResultType } from '#/request'
import useDealResult from '@/hooks/dealResult'
import uniRequest from '@/request'

const { dealResult, checkResult } = useDealResult()

export const getTotalAmount = async (param: any): Promise<BaseResultType<any> | null> => {
  const [result, err] = await uniRequest.get('/pay/api/getTotalAmount', param)
  return Promise.resolve(dealResult(err, result))
}
export const getRentLedger = async (param: any): Promise<BaseResultType<any> | null> => {
  const [result, err] = await uniRequest.get('/pay/api/getRentLedger', param)
  return Promise.resolve(dealResult(err, result))
}
